<template>
  <div id="home">
    <div id="nav">
      <el-container>
        <el-main>
          <div class="home-container">
            <el-row :gutter="20">
              <!-- 右侧导航栏部分 -->
              <el-col :span="3">
                <div class="grid-content bg-purple" style="width: 100px;height: 123px;">
                  <ul class="text-center">
                    <li class="li-one">
                      <a href class="li-one">热门</a>
                    </li>
                    <li>
                      <a @click="OnGz">关注</a>
                    </li>
                    <li>
                      <a @click="OnWw">微文</a>
                    </li>
                  </ul>
                </div>
              </el-col>
              <!-- 中间部分循环滚动 -->
              <el-col :span="16">
                <div class="grid-content bg-purple">
                  <div>
                    <ul class="home-list-top">
                      <li>
                        <a href class="active">热门</a>
                      </li>
                    </ul>
                    <!-- 中间相同部分 -->
                    <ul class="ait-list">
                      <li class="ait-li">
                        <div class="ait-li-div1">
                          <span>
                            <img src="../assets/image/tx1.jpeg" alt />
                          </span>
                          <span>
                            <a href>Busy</a>
                          </span>
                          <p>56分钟前</p>
                          <a href class="link" style="float: right;">...</a>
                        </div>
                        <div class="ait-li-div2">
                          <div class="ait-li-div2-left">
                            <img src="../assets/image/text1.jpeg" alt />
                          </div>
                          <div class="ait-li-div2-right">
                            <a href class="div2-right-one">当当宫斗破案|李国庆根本没想重掌当当，而是为了他的新区块链内容平台</a>
                            <br />
                            <a
                              href
                              class="div2-right-two"
                            >大家好，我是币圈第一娱记，B姐／瓜妹！ 昨天咱们深扒了当当李国庆俞渝夫妇的宫斗大戏第一幕，发现了一</a>
                          </div>
                        </div>
                        <div class="ait-li-div3">
                          <button>
                            <img src="../assets/image/qian.png" alt />
                            <span>3549.92</span>
                          </button>
                          <button>
                            <img src="../assets/image/zan.png" alt />
                            <span>729</span>
                          </button>
                          <button>
                            <img src="../assets/image/diandiandian.png" alt />
                            <span>143</span>
                          </button>
                        </div>
                      </li>
                      <li class="ait-li">
                        <div class="ait-li-div1">
                          <span>
                            <img src="../assets/image/tx1.jpeg" alt />
                          </span>
                          <span>
                            <a href>Busy</a>
                          </span>
                          <p>56分钟前</p>
                          <a href class="link" style="float: right;">...</a>
                        </div>
                        <div class="ait-li-div2">
                          <div class="ait-li-div2-left">
                            <img src="../assets/image/text1.jpeg" alt />
                          </div>
                          <div class="ait-li-div2-right">
                            <a href class="div2-right-one">当当宫斗破案|李国庆根本没想重掌当当，而是为了他的新区块链内容平台</a>
                            <br />
                            <a
                              href
                              class="div2-right-two"
                            >大家好，我是币圈第一娱记，B姐／瓜妹！ 昨天咱们深扒了当当李国庆俞渝夫妇的宫斗大戏第一幕，发现了一</a>
                          </div>
                        </div>
                        <div class="ait-li-div3">
                          <button>
                            <img src="../assets/image/qian.png" alt />
                            <span>3549.92</span>
                          </button>
                          <button>
                            <img src="../assets/image/zan.png" alt />
                            <span>729</span>
                          </button>
                          <button>
                            <img src="../assets/image/diandiandian.png" alt />
                            <span>143</span>
                          </button>
                        </div>
                      </li>
                      <li class="ait-li">
                        <div class="ait-li-div1">
                          <span>
                            <img src="../assets/image/tx1.jpeg" alt />
                          </span>
                          <span>
                            <a href>Busy</a>
                          </span>
                          <p>56分钟前</p>
                          <a href class="link" style="float: right;">...</a>
                        </div>
                        <div class="ait-li-div2">
                          <div class="ait-li-div2-left">
                            <img src="../assets/image/text1.jpeg" alt />
                          </div>
                          <div class="ait-li-div2-right">
                            <a href class="div2-right-one">当当宫斗破案|李国庆根本没想重掌当当，而是为了他的新区块链内容平台</a>
                            <br />
                            <a
                              href
                              class="div2-right-two"
                            >大家好，我是币圈第一娱记，B姐／瓜妹！ 昨天咱们深扒了当当李国庆俞渝夫妇的宫斗大戏第一幕，发现了一</a>
                          </div>
                        </div>
                        <div class="ait-li-div3">
                          <button>
                            <img src="../assets/image/qian.png" alt />
                            <span>3549.92</span>
                          </button>
                          <button>
                            <img src="../assets/image/zan.png" alt />
                            <span>729</span>
                          </button>
                          <button>
                            <img src="../assets/image/diandiandian.png" alt />
                            <span>143</span>
                          </button>
                        </div>
                      </li>
                      <li class="ait-li">
                        <div class="ait-li-div1">
                          <span>
                            <img src="../assets/image/tx1.jpeg" alt />
                          </span>
                          <span>
                            <a href>Busy</a>
                          </span>
                          <p>56分钟前</p>
                          <a href class="link" style="float: right;">...</a>
                        </div>
                        <div class="ait-li-div2">
                          <div class="ait-li-div2-left">
                            <img src="../assets/image/text1.jpeg" alt />
                          </div>
                          <div class="ait-li-div2-right">
                            <a href class="div2-right-one">当当宫斗破案|李国庆根本没想重掌当当，而是为了他的新区块链内容平台</a>
                            <br />
                            <a
                              href
                              class="div2-right-two"
                            >大家好，我是币圈第一娱记，B姐／瓜妹！ 昨天咱们深扒了当当李国庆俞渝夫妇的宫斗大戏第一幕，发现了一</a>
                          </div>
                        </div>
                        <div class="ait-li-div3">
                          <button>
                            <img src="../assets/image/qian.png" alt />
                            <span>3549.92</span>
                          </button>
                          <button>
                            <img src="../assets/image/zan.png" alt />
                            <span>729</span>
                          </button>
                          <button>
                            <img src="../assets/image/diandiandian.png" alt />
                            <span>143</span>
                          </button>
                        </div>
                      </li>
                    </ul>
                  </div>
                </div>
              </el-col>
              <!-- 右侧部分 -->
              <el-col :span="3">
                <div class="grid-content bg-purple">
                  <a href>
                    <img
                      src="../assets/image/notice.e62cc7bd.png"
                      style="width: 285px;height: 80px;margin-bottom: 20px;"
                      alt
                    />
                    <img
                      src="../assets/image/new-to-boot-icon.03b9591d.png"
                      style="width: 285px;height: 60px;margin-bottom: 20px;"
                      alt
                    />
                    <img
                      src="../assets/image/bihu-e.452c8664.jpg"
                      style="width: 285px;height: 141px;margin-bottom: 20px;"
                      alt
                    />
                  </a>
                </div>
              </el-col>
            </el-row>
          </div>
        </el-main>
      </el-container>
    </div>
    <router-view />
  </div>
</template>

<script>
export default {
  methods: {
    OnWw () {
      this.$router.push('/WW')
    },
    OnGz () {
      this.$router.push('/GZ')
    }
  }
}
</script>
<style scoped>
.home-container {
  width: 1170px;
  height: 100%;
  margin: 0 auto;
}
.el-row {
  margin-bottom: 20px;
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
/* .bg-purple {
  background: #d3dce6;
} */
.bg-purple-light {
  background: #e5e9f2;
}
/* .grid-content {
  min-height: 36px;
} */
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
.text-center {
  text-align: center;
}
.text-center .li-one {
  border-radius: 2px;
  background: #007bff;
  color: #fff;
}
.text-center li a {
  display: block;
  padding: 10px 0;
  border-radius: 2px;
  background: transparent;
  color: #3b4651;
  margin-bottom: 2px;
  font-size: 14px;
  text-decoration: none;
}

.text-center li a:hover {
  transition: all 0.5s;
  background: #007bff;
  color: #fff;
}
.home-list-top {
  background: #fff;
  margin-right: 0;
  margin-left: -35px;
  height: 39px;
  line-height: 39px;
}
.home-list-top li {
  float: left;
  padding: 0 0 0 23px;
}
.home-list-top li .active {
  transition: all 1.5s;
  color: #007bff;
  border-bottom-color: #007bff;
}
.home-list-top li a {
  display: inline-block;
  line-height: 39px;
  width: 60px;
  height: 37px;
  text-align: center;
  color: #bcc7d7;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 3px solid #fff;
}
.ait-list {
  width: 815px;
  height: 100%;
  transition: all 0.5s;
  margin-left: -35px;
}
.ait-li {
  margin-top: 1px;
  background: #fff;
  padding: 15px 32px 15px 30px;
}
.ait-list .ait-li .ait-li-div1 span img {
  width: 40px;
  height: 40px;
}
.ait-list .ait-li .ait-li-div1 span a {
  position: relative;
  top: -25px;
  color: #5a6169;
  margin-left: 10px;
  font-size: 14px;
}
.ait-list .ait-li .ait-li-div1 p {
  font-size: 12px;
  color: #ccc;
  margin-top: -20px;
  margin-left: 50px;
}
.ait-list .ait-li .ait-li-div1 .link {
  margin-top: -50px;
  font-size: 20px;
  color: #9b9b9b;
}
.ait-list .ait-li .ait-li-div2 .ait-li-div2-left {
  float: left;
  width: 230px;
  height: 98px;
}
.ait-list .ait-li .ait-li-div2 .ait-li-div2-left img {
  width: 230px;
  height: 98px;
}
.ait-list .ait-li .ait-li-div2 .ait-li-div2-right {
  float: left;
  width: 473px;
  height: 98px;
  margin-left: 20px;
}
.div2-right-one {
  font-size: 20px;
  color: #212529;
  line-height: 28px;
  margin-bottom: 5px;
  max-height: 58px;
}
.div2-right-two {
  line-height: 19px;
  color: #999;
  font-size: 13px;
  max-height: 40px;
}
.ait-li-div3 {
  margin-left: 490px;
}
.ait-li-div3 button {
  margin: 0 13px;
  /* margin: 0; */
  padding: 0;
  border: none;
  background: none;
}
.ait-li-div3 button img {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}
.ait-li-div3 button span {
  font-size: 12px;
  color: #999;
}
</style>
